﻿using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RabbitMQDemo.Basic.Producer
{
    public static class RabbitMQHelper
    {
        public static IConnection GetConnection() {
            ConnectionFactory RabbitMQHelper = new ConnectionFactory
            {
                HostName = "127.0.0.1"
                //Port = 15672,
                //UserName = "guest",
                //Password = "guest",
                //VirtualHost = "/"
            };
            return RabbitMQHelper.CreateConnection();
        }
    }
}
